
public class javademo {
    public static int add(int a,int b){
        return a+b;
    }
    public static double add(double a,double b){
        return a+b;
    }
    public static double add(double a,int b){
        return a+b;
    }
    public static double add(double a,double b,int c){return a+b+c;}
    public static void print(int[] array,int n) {
        if(n== array.length){
            System.out.println(array[n-1]);
        }
        if(n==1){
            System.out.println(array[n-1]);
            return ;
        }
        print(array,n-1);
        System.out.println(array[n-1]);
       // return;
    }

    public static void print1(int []array){
        System.out.println(array.toString(array));
    }
    public static void main(String[] args) {
       // int sum=add(1,2);
        int [] array={1,2,3};
        print1(array);
        //System.out.println(sum);
        //System.out.println(add(1.5,1.2));
        //System.out.println(add(1.2,4));
        //System.out.println(add(1.2,2.1,1));
    }
}
